﻿using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Xml.Serialization;

namespace VSEncoder
{
    public class Configuration
    {
        [XmlArrayItem("Item")]
        public List<string> Extensions { get; set; }

        public Configuration()
        {
            Extensions = new List<string>();
        }

        public Configuration(IEnumerable<string> extensions) : this()
        {
            foreach (var extension in extensions)
            {
                Extensions.Add(extension);
            }
        }
    }
}